<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
  <style>
    #cart{
      width: 600px;
      margin: 40px auto;
    }
  </style>
</head>
<body>
  <div id="app">
    <table id="cart" class="table table-bordered"  align="center">
      <tr>
        <th>商品名</th>
        <th>商品价格</th>
        <th>商品购买数量</th>
        <th>小计</th>
        <th>操作</th>
      </tr>
      <tr>
        <td>
          <input type="checkbox">
          <span>商品1</span>
        </td>
        <td>
          18.8
        </td>
        <td>
          <button class="btn btn-xs">+</button>
          <span>1</span>
          <button class="btn btn-xs">-</button>
        </td>
        <td>
          18.8
        </td>
        <td>
          <button class="btn btn-danger btn-sm">删除</button>
        </td>
      </tr>
      <tr>
        <td>合计:</td>
        <td colspan="4">
          总价格：xxx
          <span>
            全选：
              <input type="checkbox">
          </span>
        </td>
      </tr>
    </table>
  </div>
  <script src="./vue.global.js"></script>
  <script>
    const { createApp } = Vue;
    const app = createApp({
      data(){
        return {
         
        }
      },
      methods: {
      
      }
    })
    app.mount('#app')
  </script>
</body>
</html>